<ul>
	<li><?php echo link_to('Inicial', url_for('@homepage')); ?></li>
	<li><?php echo link_to('Institucional', url_for('@institucional')); ?>	
		<?php if(count($institucionais)): ?>
		<ul>
			<?php foreach($institucionais as $institucional): ?>
			<li class="item_submenu">
				<?php 
					echo link_to(
						$institucional['ds_titulo'],
						url_for('@pagina?slugpagina='.$institucional['slugpagina'])
					);
				?>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	</li>
	<li><?php echo link_to('Produtos', url_for('@produtos')); ?>
		<?php if(count($categorias)): ?>
		<ul>
			<?php foreach($categorias as $categoria): ?>
			<li class="item_submenu">
				<?php 
					echo link_to(
						$categoria['nm_categoria'],
						url_for('@produtoCategoria?slug='.$categoria['slug'])
					);
				?>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	</li>
	<!-- <li><?php echo link_to('Serviços', url_for('@servicos')); ?></li> -->
	<li><?php echo link_to('Marketing', url_for('@marketing')); ?></li>
	<li><?php echo link_to('Para o público', url_for('@publico')); ?>
		<?php if(count($publicos)): ?>
		<ul>
			<?php foreach($publicos as $publico): ?>
			<li class="item_submenu">
				<?php 
					echo link_to(
						$publico['ds_titulo'],
						url_for('@pagina?slugpagina='.$publico['slugpagina'])
					);
				?>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	</li>
	<li><?php echo link_to('Galeria', url_for('@galeria')); ?></li>
	<li><?php echo link_to('Contato', url_for('@fale-conosco')); ?></li>
  	
  	<?php if(count($conteudo_extra)): 	?>
  	<li><a href="javascript:void(0);">Veja mais</a>	
  		<ul>			
		  	<?php foreach($conteudo_extra as $c): ?>
		  	<li class="item_submenu"><?php echo link_to($c['nm_item'], url_for('@extra?slug='.$c['slug'])); ?></li>
		  	<?php endforeach; ?>
		</ul>
	</li>
  	<?php endif; ?>				
</ul>

<script type="text/javascript">
$(document).ready(function(){
	$(".menu ul li ul li a").hover(function(){
		$(this).parent().parent().parent().find("a:first").addClass("menu_active");
	}).mouseout(function(){
		$(".menu ul li a").removeClass("menu_active");
	});
});
</script>